package cn.sanch.pet.domain;

import java.util.ArrayList;
import java.util.List;

import cn.sanch.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * 实体类：
 */
@Data
public class PetType extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private String name;
    private String description;
    private String dirPath;
    /**
     * 父类型id
     */
    private Long pid;


    /**
     * 部门子部门集合
     *
     * JsonInclude(JsonInclude.Include.NON_EMPTY) 部门树最后一级没有数据就不显示
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<PetType> children = new ArrayList<PetType>();
}
